import request from '@/utils/request'

// 劳务分包合同
export function getTransferContractFinishInfoList(data) {
  return request({
    url: '/api/contractManage/transferContractInfo/getTransferContractFinishInfoList',
    method: 'post',
    data
  })
}

// 劳务合同结算
export function getLaborContractFinishInfoList(data) {
  return request({
    url: '/api/selfManage/laborContractInfo/getLaborContractFinishInfoList',
    method: 'post',
    data
  })
}

export function getTransferContractBasicInfoList(data) {
  return request({
    url: '/api/selfManage/laborContractInfo/getLaborContractBasicInfoList',
    method: 'post',
    data
  })
}

export function addTransferContractInfo(data) {
  return request({
    url: '/api/selfManage/laborContractInfo/addLaborContractInfo',
    method: 'post',
    data
  })
}

export function updateTransferContractInfo(data) {
  return request({
    url: '/api/selfManage/laborContractInfo/updateLaborContractInfo',
    method: 'post',
    data
  })
}

export function deleteTransferContractInfo(params) {
  return request({
    url: '/api/selfManage/laborContractInfo/deleteLaborContractInfo',
    method: 'post',
    params
  })
}

export function getTransferContractInfoDetail(params) {
  return request({
    url: '/api/selfManage/laborContractInfo/getLaborContractInfoDetail',
    method: 'post',
    params
  })
}

// 劳务分包合同结算
export function getLaborContractSettleInfoList(data) {
  return request({
    url: '/api/selfManage/laborContractSettleInfo/getLaborContractSettleInfoList',
    method: 'post',
    data
  })
}

export function addTransferContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/laborContractSettleInfo/addLaborContractSettleInfo',
    method: 'post',
    data
  })
}

export function updateTransferContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/laborContractSettleInfo/updateLaborContractSettleInfo',
    method: 'post',
    data
  })
}

export function deleteTransferContractSettleInfo(params) {
  return request({
    url: '/api/selfManage/laborContractSettleInfo/deleteLaborContractSettleInfo',
    method: 'post',
    params
  })
}

export function getTransferContractSettleInfoDetail(params) {
  return request({
    url: '/api/selfManage/laborContractSettleInfo/getLaborContractSettleInfoDetail',
    method: 'post',
    params
  })
}

export function getLaborContractSettleChecklistCountInfo(params) {
  return request({
    url: '/api/selfManage/laborContractSettleInfo/getLaborContractSettleChecklistCountInfo',
    method: 'post',
    params
  })
}

export function getLaborContractChecklistList(params) {
  return request({
    url: '/api/selfManage/laborContractInfo/getLaborContractChecklistList',
    method: 'post',
    params
  })
}

// 材料采购合同
export function getMaterialContractBasicInfoList(data) {
  return request({
    url: '/api/selfManage/materialContractInfo/getMaterialContractBasicInfoList',
    method: 'post',
    data
  })
}
export function getMaterialContractFinishInfoList(data) {
  return request({
    url: '/api/selfManage/materialContractInfo/getMaterialContractFinishInfoList',
    method: 'post',
    data
  })
}

export function addMaterialContractInfo(data) {
  return request({
    url: '/api/selfManage/materialContractInfo/addMaterialContractInfo',
    method: 'post',
    data
  })
}

export function updateMaterialContractInfo(data) {
  return request({
    url: '/api/selfManage/materialContractInfo/updateMaterialContractInfo',
    method: 'post',
    data
  })
}

export function deleteMaterialContractInfo(params) {
  return request({
    url: '/api/selfManage/materialContractInfo/deleteMaterialContractInfo',
    method: 'post',
    params
  })
}

export function getMaterialContractInfoDetail(params) {
  return request({
    url: '/api/selfManage/materialContractInfo/getMaterialContractInfoDetail',
    method: 'post',
    params
  })
}
export function getMaterialContractSettleInfoList(data) {
  return request({
    url: '/api/selfManage/materialContractSettleInfo/getMaterialContractSettleInfoList',
    method: 'post',
    data
  })
}
export function addMaterialContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/materialContractSettleInfo/addMaterialContractSettleInfo',
    method: 'post',
    data
  })
}
export function updateMaterialContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/materialContractSettleInfo/updateMaterialContractSettleInfo',
    method: 'post',
    data
  })
}
export function getMaterialContractSettleInfoDetail(params) {
  return request({
    url: '/api/selfManage/materialContractSettleInfo/getMaterialContractSettleInfoDetail',
    method: 'post',
    params
  })
}
export function getMaterialContractMaterialList(params) {
  return request({
    url: '/api/selfManage/materialContractInfo/getMaterialContractMaterialList',
    method: 'post',
    params
  })
}
export function deleteMaterialContractSettleInfo(params) {
  return request({
    url: '/api/selfManage/materialContractSettleInfo/deleteMaterialContractSettleInfo',
    method: 'post',
    params
  })
}

// 其他合同
export function getOtherContractInfoList(data) {
  return request({
    url: '/api/selfManage/otherContractInfo/getOtherContractBasicInfoList',
    method: 'post',
    data
  })
}
export function getOtherContractFinishInfoList(data) {
  return request({
    url: '/api/selfManage/otherContractInfo/getOtherContractFinishInfoList',
    method: 'post',
    data
  })
}

export function addOtherContractInfo(data) {
  return request({
    url: '/api/selfManage/otherContractInfo/addOtherContractInfo',
    method: 'post',
    data
  })
}

export function updateOtherContractInfo(data) {
  return request({
    url: '/api/selfManage/otherContractInfo/updateOtherContractInfo',
    method: 'post',
    data
  })
}

export function deleteOtherContractInfo(params) {
  return request({
    url: '/api/selfManage/otherContractInfo/deleteOtherContractInfo',
    method: 'post',
    params
  })
}

export function getOtherContractInfoDetail(params) {
  return request({
    url: '/api/selfManage/otherContractInfo/getOtherContractInfoDetail',
    method: 'post',
    params
  })
}
// 添加其他合同结算信息
export function addOtherContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/otherContractSettleInfo/addOtherContractSettleInfo',
    method: 'post',
    data
  })
}
// 删除其他合同结算信息
export function deleteOtherContractSettleInfo(params) {
  return request({
    url: '/api/selfManage/otherContractSettleInfo/deleteOtherContractSettleInfo',
    method: 'post',
    params
  })
}
// 获取其他合同结算信息详情
export function getOtherContractSettleInfoDetail(params) {
  return request({
    url: '/api/selfManage/otherContractSettleInfo/getOtherContractSettleInfoDetail',
    method: 'post',
    params
  })
}
// 获取其他合同结算信息列表
export function getOtherContractSettleInfoList(data) {
  return request({
    url: '/api/selfManage/otherContractSettleInfo/getOtherContractSettleInfoList',
    method: 'post',
    data
  })
}
// 更新其他合同结算信息
export function updateOtherContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/otherContractSettleInfo/updateOtherContractSettleInfo',
    method: 'post',
    data
  })
}

// 获取机械设备采购合同详情列表
export function getMachineDeviceStockContractDetailList(params) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/getMachineDeviceStockContractDetailList',
    method: 'post',
    params
  })
}

// 设备采购合同
export function getMachineDeviceStockContractBasicInfoList(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/getMachineDeviceStockContractBasicInfoList',
    method: 'post',
    data
  })
}
export function getMachineDeviceStockContractFinishInfoList(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/getMachineDeviceStockContractFinishInfoList',
    method: 'post',
    data
  })
}

export function addMachineDeviceStockContractInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/addMachineDeviceStockContractInfo',
    method: 'post',
    data
  })
}

export function updateMachineDeviceStockContractInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/updateMachineDeviceStockContractInfo',
    method: 'post',
    data
  })
}

export function deleteMachineDeviceStockContractInfo(params) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/deleteMachineDeviceStockContractInfo',
    method: 'post',
    params
  })
}

export function getMachineDeviceStockContractInfoDetail(params) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractInfo/getMachineDeviceStockContractInfoDetail',
    method: 'post',
    params
  })
}

// 添加设备采购合同结算信息
export function addMachineDeviceStockContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractSettleInfo/addMachineDeviceStockContractSettleInfo',
    method: 'post',
    data
  })
}
// 删除设备采购合同结算信息
export function deleteMachineDeviceStockContractSettleInfo(params) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractSettleInfo/deleteMachineDeviceStockContractSettleInfo',
    method: 'post',
    params
  })
}
// 获取设备采购合同结算信息详情
export function getMachineDeviceStockContractSettleInfoDetail(params) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractSettleInfo/getMachineDeviceStockContractSettleInfoDetail',
    method: 'post',
    params
  })
}
// 获取设备采购合同结算信息列表
export function getMachineDeviceStockContractSettleInfoList(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractSettleInfo/getMachineDeviceStockContractSettleInfoList',
    method: 'post',
    data
  })
}
// 更新设备采购合同结算信息
export function updateMachineDeviceStockContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceStockContractSettleInfo/updateMachineDeviceStockContractSettleInfo',
    method: 'post',
    data
  })
}

// 销售合同
// export function getTransferContractFinishInfoList(data) {
//   return request({
//     url: '/api/selfManage/saleContractInfo/getSaleContractFinishInfoList',
//     method: 'post',
//     data
//   })
// }
export function getSaleContractBasicInfoList(data) {
  return request({
    url: '/api/selfManage/saleContractInfo/getSaleContractBasicInfoList',
    method: 'post',
    data
  })
}
export function getSaleContractFinishInfoList(data) {
  return request({
    url: '/api/selfManage/saleContractInfo/getSaleContractFinishInfoList',
    method: 'post',
    data
  })
}

export function addSaleContractInfo(data) {
  return request({
    url: '/api/selfManage/saleContractInfo/addSaleContractInfo',
    method: 'post',
    data
  })
}

export function updateSaleContractInfo(data) {
  return request({
    url: '/api/selfManage/saleContractInfo/updateSaleContractInfo',
    method: 'post',
    data
  })
}

export function deleteSaleContractInfo(params) {
  return request({
    url: '/api/selfManage/saleContractInfo/deleteSaleContractInfo',
    method: 'post',
    params
  })
}

export function getSaleContractInfoDetail(params) {
  return request({
    url: '/api/selfManage/saleContractInfo/getSaleContractInfoDetail',
    method: 'post',
    params
  })
}

// 销售合同结算
export function getSaleContractSettleInfoList(data) {
  return request({
    url: '/api/selfManage/saleContractSettleInfo/getSaleContractSettleInfoList',
    method: 'post',
    data
  })
}

export function addSaleContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/saleContractSettleInfo/addSaleContractSettleInfo',
    method: 'post',
    data
  })
}

export function updateSaleContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/saleContractSettleInfo/updateSaleContractSettleInfo',
    method: 'post',
    data
  })
}

export function deleteSaleContractSettleInfo(params) {
  return request({
    url: '/api/selfManage/saleContractSettleInfo/deleteSaleContractSettleInfo',
    method: 'post',
    params
  })
}

export function getSaleContractSettleInfoDetail(params) {
  return request({
    url: '/api/selfManage/saleContractSettleInfo/getSaleContractSettleInfoDetail',
    method: 'post',
    params
  })
}

export function getSaleContractSettleChecklistAmountInfo(params) {
  return request({
    url: '/api/selfManage/saleContractSettleInfo/getSaleContractSettleChecklistAmountInfo',
    method: 'post',
    params
  })
}

export function getSaleContractInfoList(params) {
  return request({
    url: '/api/selfManage/saleContractInfo/getSaleContractChecklistList',
    method: 'post',
    params
  })
}

// 获取机械设备租赁合同完成信息列表
export function getMachineDeviceLeaseContractFinishInfoList(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/getMachineDeviceLeaseContractFinishInfoList',
    method: 'post',
    data
  })
}

// 获取机械设备租赁合同详情列表
export function getMachineDeviceLeaseContractDetailList(params) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/getMachineDeviceLeaseContractDetailList',
    method: 'post',
    params
  })
}

// 获取机械设备租赁合同信息详情
export function getMachineDeviceLeaseContractInfoDetail(params) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/getMachineDeviceLeaseContractInfoDetail',
    method: 'post',
    params
  })
}

// 删除机械设备租赁合同信息
export function deleteMachineDeviceLeaseContractInfo(params) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/deleteMachineDeviceLeaseContractInfo',
    method: 'post',
    params
  })
}

// 更新机械设备租赁合同信息
export function updateMachineDeviceLeaseContractInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/updateMachineDeviceLeaseContractInfo',
    method: 'post',
    data
  })
}

// 添加机械设备租赁合同信息
export function addMachineDeviceLeaseContractInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/addMachineDeviceLeaseContractInfo',
    method: 'post',
    data
  })
}

// 获取机械设备租赁合同基本信息列表
export function getMachineDeviceLeaseContractBasicInfoList(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractInfo/getMachineDeviceLeaseContractBasicInfoList',
    method: 'post',
    data
  })
}

// 获取机械设备租赁合同结算信息列表
export function getMachineDeviceLeaseContractSettleInfoList(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractSettleInfo/getMachineDeviceLeaseContractSettleInfoList',
    method: 'post',
    data
  })
}

// 获取机械设备租赁合同结算信息详情
export function getMachineDeviceLeaseContractSettleInfoDetail(params) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractSettleInfo/getMachineDeviceLeaseContractSettleInfoDetail',
    method: 'post',
    params
  })
}

// 删除机械设备租赁合同结算信息
export function deleteMachineDeviceLeaseContractSettleInfo(params) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractSettleInfo/deleteMachineDeviceLeaseContractSettleInfo',
    method: 'post',
    params
  })
}

// 添加机械设备租赁合同结算信息
export function addMachineDeviceLeaseContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractSettleInfo/addMachineDeviceLeaseContractSettleInfo',
    method: 'post',
    data
  })
}

// 更新机械设备租赁合同结算信息
export function updateMachineDeviceLeaseContractSettleInfo(data) {
  return request({
    url: '/api/selfManage/machineDeviceLeaseContractSettleInfo/updateMachineDeviceLeaseContractSettleInfo',
    method: 'post',
    data
  })
}

